package com.atguigu.yygh.hosp;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@ComponentScan(basePackages = "com.atguigu")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.atguigu")
public class ServiceHospApplication {
    //@ComponentScan(basePackages = "com.atguigu")
    //将配置类添加到hosp中，
    // 但是common和hosp不在同一个包中引入的时候会报错，
    // 加上后就可以运行当前文件也可以扫描到配置类的文件
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
